package string;

import jdk.internal.org.objectweb.asm.tree.analysis.Value;

/**
 *  static 静态方法
 *  将其他类型转换为String
 */
public class ValueOfDemo {
    public static void main(String[] args) {
        int a = 1245454;
        double b = 4.123124;
        String c = String.valueOf(a);
        System.out.println(c);
        c = String.valueOf(b);
        System.out.println(c);
    }
}
